package TestDemo;

import java.util.Scanner;

class A {
    public int b;
    public A() {

    }
    public A(int b) {
        this.b = b;
    }
}

class Add {
    public int add(int a, int b){
        return a + b;
    }
    public float add(float a, float b){
        return a + b;
    }
}
class B {
    public static int b = 10;
    public static void print() {
        System.out.println(b);
    }
}

public class TestDemo1 {
    public static void main(String[] args) {
        B b1 = new B();
        B b2 = new B();
        b1.print();
        b1.b--;
        b1.print();
        b2.print();
        B.print();
    }

    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        A a1 = new A();
        A a2 = new A(10);
        System.out.println(a1.b);
        System.out.println(a2.b);
    }
}
